Skip to content

[9.2] [ResponseOps][Maintenance Window] Maintenance Window does not apply when using wildcard via Query DSL (#256622)#259307

Merged
georgianaonoleata1904 merged 9 commits intoelastic:9.2from
georgianaonoleata1904:backport/9.2/pr-256622
Apr 6, 2026
Merged

[9.2] [ResponseOps][Maintenance Window] Maintenance Window does not apply when using wildcard via Query DSL (#256622)#259307
georgianaonoleata1904 merged 9 commits intoelastic:9.2from
georgianaonoleata1904:backport/9.2/pr-256622

Conversation

@georgianaonoleata1904
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

…hen using wildcard via Query DSL (elastic#256622)

Closes elastic#252656
Closes elastic#253857

## Summary

Fixed MW alert filtering when using wildcards.
- `buildEsQuery()` was called with `undefined` for the index pattern
param so the KQL compiler couldn't determine field types
- fix: pass a `DataViewBase` with `esTypes` from `alertFieldMap`,
enabling correct wildcard handling for keyword fields

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit f26f09a)

# Conflicts:
#	x-pack/platform/plugins/shared/alerting/server/application/maintenance_window/methods/create/create_maintenance_window.test.ts
#	x-pack/platform/plugins/shared/alerting/server/application/maintenance_window/methods/create/create_maintenance_window.ts
#	x-pack/platform/plugins/shared/alerting/server/application/maintenance_window/methods/update/update_maintenance_window.test.ts
#	x-pack/platform/plugins/shared/alerting/server/application/maintenance_window/methods/update/update_maintenance_window.ts
#	x-pack/platform/plugins/shared/maintenance_windows/moon.yml
#	x-pack/platform/plugins/shared/maintenance_windows/tsconfig.json
@georgianaonoleata1904
Copy link
Copy Markdown
Contributor Author

Added fix also for: #259514 to be backported together

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
unifiedSearch 389.1KB 389.3KB +220.0B
Unknown metric groups

References to deprecated APIs

id before after diff
unifiedSearch 11 13 +2

History

@georgianaonoleata1904 georgianaonoleata1904 merged commit 350092e into elastic:9.2 Apr 6, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants